package com.tuanzi.loan.business.repository.galaxycard;

import com.tuanzi.loan.business.entity.galaxycard.GalaxyCardPromoteUserChannel;
import com.tuanzi.loan.core.repository.JPAAuditRepository;

/**
 * 银河黑卡外推用户渠道关联管理Repository
 * @author chenweijun 2018/02/01
 *
 */
public interface GalaxyCardPromoteUserRelateChannelRepository extends JPAAuditRepository<GalaxyCardPromoteUserChannel, Long>{
	
	
	/**
	 * 根据用户ID、渠道号查询关联数据
	 * @param userId
	 * @param channelCode
	 * @return
	 */
	GalaxyCardPromoteUserChannel findByUserIdAndChannelCode(String userId, Integer channelCode);
	
	

}
